package com.leinao.file.dto;

import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

/**
 *
 * @Description 文件上传Bean
 * @author lizi
 * @date 2018/10/17 下午4:22
 * @Version 1.0
 */
public class FileUploadDto implements Serializable {
	
    /**
	 * 
	 */
	private static final long serialVersionUID = 1260649838030385818L;

	/**
     * 用户ID
     */
    private String userId;

    /**
     * 根目录类型 com.leinao.constant.PathTypeEnum
     */
    private Integer type;

    /**
     * 目录
     */
    private String dir;

    /**
     * 文件或文件夹上传
     */
    private MultipartFile file;

    public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDir() {
        return dir;
    }

    public void setDir(String dir) {
        this.dir = dir;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    @Override
    public String toString() {
        return "FileUploadDto{" +
                "userId='" + userId + '\'' +
                ", type=" + type +
                ", dir='" + dir + '\'' +
                '}';
    }
}
